let myPromise = require('./MyPromise')
let pro = new myPromise((resolve, reject) => {
  setTimeout(() => {
    console.log('11111111111')
    resolve('成功')
  }, 2000)
})
pro.then(value => {
  console.log(value)
}).finally(() => {
  console.log('finally')
})
let pro1 = new myPromise((resolve, reject) => {
  setTimeout(() => {
    console.log('22222222222')
    resolve('成功')
  }, 5000)
})
myPromise.all([pro, pro1]).then(value => {
  console.log('9999999999', value)
})
